#include <stdio.h>
#include <stdlib.h>
#include <time.h>

void fun(int i, int poker2[]) {
	if (i>1) {
		int j = rand() % i;
		int temp = poker2[i - 1];
		poker2[i - 1] = poker2[j];
		poker2[j] = temp;
		fun(i - 1, poker2);
	}
}

int main()
{
	srand(time(0));
	int poker[13] = { 1,2,3,4,5,6,7,8,9,10,11,12,13 };
	fun(13, poker);
	for (int i = 0; i < 13; i++) {
		printf("%d ", poker[i]);
	}
	getchar();
	return 0;
}